import requests from '@/api/request'
// const SERVER_URL = 'esale-user'
export default {
  // 查询
  postQueryOverdueData (data) {
    return requests({
      url: `v1/api/esale-pay/repay/overdue/queryByCondition`,
      method: 'post',
      data
    })
  },
  // 还款逾期件撤回分派
  postRepayCancelData (data) {
    console.log(data)
    return requests({
      url: `v1/api/esale-pay/repay/overdue/assign/cancel`,
      method: 'post',
      data
    })
  },
  // 查询分派受理人
  postQueryAcceptorsData (data) {
    return requests({
      url: `v1/api/esale-user/user/query/assign/acceptors`,
      method: 'post',
      data
    })
  },
  // 还款逾期件分派受理人
  postAssignAcceptorsData (data) {
    return requests({
      url: `v1/api/esale-pay/repay/overdue/assign/acceptor`,
      method: 'post',
      data
    })
  },
  // 通过ID查询还款逾期详情
  getQueryByIdRepayData (data) {
    return requests({
      url: `v1/api/esale-pay/repay/overdue/queryById/${data}`,
      method: 'get'
    })
  },
  // 还款跟踪功能
  postQueryFollowData (data) {
    return requests({
      url: `v1/api/esale-pay/repay/follow/queryByCondition`,
      method: 'post',
      data
    })
  }
}
